package cn.com.okgotest;

import android.app.Application;

import com.luck.picture.lib.compress.Luban;

import cn.com.okgo.OkGo;
import cn.com.okgo.cookie.CookiesManager;
import me.drakeet.library.CrashWoodpecker;
import me.drakeet.library.PatchMode;

/**
 * Created by luwenlong on 2017/8/28.
 */

public class OkgoTestApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        OkGo.init(this);
        CrashWoodpecker.instance()
                .withKeys("widget", "me.drakeet")
                .setPatchMode( PatchMode.SHOW_LOG_PAGE)
                .setPatchDialogUrlToOpen("https://drakeet.me")
                .setPassToOriginalDefaultHandler(true)
                .flyTo(this);
    }
}
